import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

export default {
  install(app) {
    // 注册 Element Plus
    app.use(ElementPlus, {
      size: 'default', // 设置组件默认尺寸
      zIndex: 3000, // 设置弹框的初始 z-index
    })
    
    // 注册所有图标
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  }
} 